<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class MedicalPhysical extends Model
{
    protected $table = 'st_medical_physiquecheck';

    protected $fillable = [
        'record_id', 'tongue', 'examination', 'cn_examination', 'other', 'remark'
    ];

    protected $casts = [
        'tongue'         => 'array',
        'examination'    => 'array',
        'cn_examination' => 'array',
        'other'          => 'array',
    ];

    public function medicalRecord()
    {
        return $this->belongsTo(MedicalRecord::class, 'record_id');
    }
}
